﻿using Medical.Domain.Base;
using Medical.Domain.Enum;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Medical.Domain.PackagingSterilization
{
    /// <summary>
    /// 灭菌登记实体
    /// </summary>
    public class SterilizationRegistration : BaseEntity
    {
        /// <summary>
        /// 灭菌批号
        /// </summary>
        public string BatchNumber { get; set; } = null!;

        /// <summary>
        /// 灭菌方式    1 压力蒸汽灭菌法  2 环氧乙烷（EO）灭菌法‌  3辐照灭菌法  4  干热灭菌法
        /// </summary> 
        public int SterilizationMode { get; set; }

        /// <summary>
        /// 灭菌设备ID  1 环氧乙烷灭菌器 2 等离子灭菌器  3.干热灭菌器
        /// </summary>
        public int EquipmentId { get; set; }

        /// <summary>
        /// 灭菌批次
        /// </summary>
        public string SterilizationBatch { get; set; } = null!;

        /// <summary>
        /// 灭菌人
        /// </summary>
        public string Operator { get; set; } = null!;

        /// <summary>
        /// 开始时间
        /// </summary>
        public DateTime StartTime { get; set; } = DateTime.Now;
        /// <summary>
        /// 灭菌时长（分钟）
        /// </summary>
        public int SterilizationDuration { get; set; } = 32;
        /// <summary>
        /// 灭菌状态（0=未完成，1=已完成）
        /// </summary>
        public int Status { get; set; } = 0;
        /// <summary>
        /// 完成人
        /// </summary>
        public string CompletionOperator { get; set; } = null!;

        /// <summary>
        /// 完成时间
        /// </summary>
        public DateTime? CompletionTime { get; set; }

        /// <summary>
        /// 灭菌结果（true:合格，false:不合格）
        /// </summary>
        public bool SterilizationResult { get; set; }
        /// <summary>
        /// 包Id
        /// </summary>
        public int EquipmentPackageIds { get; set; }

    }
}